import { createApp } from 'vue'
import App from './App.vue'
import router, { setupRouter } from '@/router'
import { setupStore } from '@/store'

import '@/styles/element-variables.scss'
import '@/styles/index.scss' // global css
import { setupPlugins } from '@/plugins'
import setupVueI18n from './locales'

import '@/router/permission'

const app = createApp(App)
setupVueI18n(app)
setupPlugins(app)
setupRouter(app)
setupStore(app)
router.isReady().then(() => app.mount('#app'))
